package top.carrotguo.weibo.contract;

import com.sina.weibo.sdk.auth.Oauth2AccessToken;

import top.carrotguo.weibo.bean.HomeTimeLine;
import top.carrotguo.weibo.retrofit.callback.BaseCallback;
import top.carrotguo.weibo.retrofit.callback.ErrorInfo;
import top.carrotguo.weibo.view.IView;

public interface PersonHomeContract {
    interface Model {
        void getBlogList(String accessToken, String uid, BaseCallback<HomeTimeLine,ErrorInfo> callback);
    }

    interface View extends IView {
        void getBlogsSuccess(HomeTimeLine successInfo);
        void getBlogsError(ErrorInfo errorInfo);
        void showBlogsEmpty();
    }

    interface Presenter {
        void getBlogList(Oauth2AccessToken token, String uid);
    }
}
